using System; using System.Collections.Generic; using System.Text; using Shared; using Shared.SimpleControl.R; namespace Shared.SimpleControl.Phone.Music { /// /// SD/USB界面 /// class A31Usbmusic : FrameLayout { Button seletcedbutton = null; bool isExited; public void show (A31MusicModel a31, List musicInfoList) { this.AddChidren (new Button { Height = Application.GetRealHeight (36), BackgroundColor = SkinStyle.Current.MusicTopFrameLayout, }); var topFrameLayout = new FrameLayout { Height = Application.GetRealHeight (90), Y = Application.GetRealHeight (36), BackgroundColor = SkinStyle.Current.MusicTopFrameLayout, }; AddChidren (topFrameLayout); var SDlistName = new Button { TextID = MyInternationalizationString.SDcard, TextColor=SkinStyle.Current.MusicTextColor, }; topFrameLayout.AddChidren (SDlistName); var hdl = new Button { Width = Application.GetRealWidth (154), Height = Application.GetRealHeight (90), X = Application.GetRealWidth (486), Gravity = Gravity.CenterVertical, UnSelectedImagePath = MainPage.LogoString, }; topFrameLayout.AddChidren (hdl); var back = new Button { Width = Application.GetRealWidth (82), Height = Application.GetRealHeight (89), X = Application.GetRealWidth (10), Gravity = Gravity.CenterVertical, UnSelectedImagePath = "MusicIcon/HomepageBack.png", }; topFrameLayout.AddChidren (back); back.MouseDownEventHandler += (sender, e) => { RemoveFromParent (); isExited = true; }; var middle = new VerticalScrolViewLayout (); middle.Y = topFrameLayout.Bottom; middle.Height = Application.GetRealHeight (Application.DesignHeight - 136); middle.BackgroundColor = SkinStyle.Current.MusicVerticalScrolViewLayout; this.AddChidren (middle); EventHandler ddd = (sender, e) => { if (seletcedbutton != null) { seletcedbutton.Parent.BackgroundColor = 0xff000000; } seletcedbutton = sender as Button; }; int number = 0; List